home *** CD-ROM | disk | FTP | other *** search
- var googleredesignedCommonOverlay = {
- addBlank:function () {
- googleredesignedCommon.add("");
- },
- clearMenu:function (event) {
- var popup = event.target;
- while (popup.hasChildNodes()) {
- popup.removeChild(popup.firstChild);
- }
- },
- handleStatusClick:function (event) {
- if (event.target.id == "googleredesigned-panel" || event.target.id == "googleredesigned-panel-prism") {
- if (event.button == 2) {
- event.target.firstChild.showPopup();
- } else if (event.button == 1) {
- googleredesignedCommonOverlay.openManageStyles();
- }
- }
- },
- openManageStyles:function () {
- var windowName = "googleredesigned";
- var windowsMediator = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator);
- var win = windowsMediator.getMostRecentWindow(windowName);
- if (win) {
- win.focus();
- } else {
- openDialog("chrome://googleredesigned/content/manage.xul", windowName, "chrome,resizable,dialog=no,centerscreen");
- }
- }
- }
-